package com.ruoyi.project.demo.goods.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

/**
 * 图书对象 db_goods
 *
 * @author demo
 * @date 2020-04-13
 */
public class Goods extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 书名
     */
    @Excel(name = "书名")
    private String name;

    /**
     * 类型
     */
    @Excel(name = "类型")
    private Long type;

    /**
     * 作者
     */
    @Excel(name = "作者")
    private String author;

    /**
     * 价格
     */
    @Excel(name = "价格")
    private Double price;

    /**
     * 简介
     */
    @Excel(name = "简介")
    private String description;

    /**
     * 封面
     */
    @Excel(name = "封面")
    private String imageUrl;
    private String typeName;

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setType(Long type) {
        this.type = type;
    }

    public Long getType() {
        return type;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getAuthor() {
        return author;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Double getPrice() {
        return price;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getDescription() {
        return description;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId()).append("name", getName()).append("type", getType()).append("author", getAuthor()).append("price", getPrice()).append("description", getDescription()).append("createBy", getCreateBy()).append("createTime", getCreateTime()).append("updateTime", getUpdateTime()).append("updateBy", getUpdateBy()).append("imageUrl", getImageUrl()).toString();
    }
}
